package com.smartcat.web.actions;

import java.util.ArrayList;
import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;

import com.smartcat.bean.NavigateBean;
import com.smartcat.web.BaseAction;



@Controller
public class HomeAction extends BaseAction{

	/**
	 * 
	 */
	private static final long serialVersionUID = -5239066396785695622L;
	static final Logger logger=Logger.getLogger(HomeAction.class);
	private List<NavigateBean> latests;
	

	@Override
	public String execute(){
		logger.info("prepare study data......");
		latests=new ArrayList<NavigateBean>();
		latests.add(new NavigateBean("demo","demo"));
		return SUCCESS;
	}
	
	

	public List<NavigateBean> getLatests() {
		return latests;
	}



	public void setLatests(List<NavigateBean> latests) {
		this.latests = latests;
	}

	
}
